package com.work.dto;

/**
 * 订单类
 *  编号 时间              orders
 *  价格 商品id name       goods
 *  用户id  收件地址 收件人 user
 */
public class Orders {
    private String oid;
    private String createTime;
    private Goods goods;
    private User user;
    //总价

    public Orders() {
    }

    public Orders(String oid, String createTime, Goods goods, User user) {
        this.oid = oid;
        this.createTime = createTime;
        this.goods = goods;
        this.user = user;
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "oid='" + oid + '\'' +
                ", createTime='" + createTime + '\'' +
                ", goods=" + goods +
                ", user=" + user +
                '}';
    }
}
